package cn.wolfcode.shop.server.mapper;

import cn.wolfcode.shop.api.domain.ProductSku;

import java.math.BigDecimal;
import java.util.List;

public interface ProductSkuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProductSku record);

    ProductSku selectByPrimaryKey(Long id);

    List<ProductSku> selectAll();

    int updateByPrimaryKey(ProductSku record);

    int countByProductId(Long id);

    void deleteByProductId(Long productId);

    List<Long> selectSkuIdByProductId(Long productId);

    List<ProductSku> selectByProductId(Long id);

    BigDecimal selectMinPriceByProductId(Long id);
}